package vfs.obj.association.impl;


import java.sql.Connection;
import vfs.filter.VFSFilter;
import vfs.obj.association.VFSNodeToNodeType;
import vfs.obj.entity.VFSNodeType;
import vfs.obj.entity.VFSNode;
import vfs.persist.association.VFSNodeToNodeTypeManager;
import vfs.persist.association.impl.VFSNodeToNodeTypeManagerImpl;
import java.util.Iterator;

/**
 *
 * @author Matthew Eavenson <durandal@uga.edu>
 */
public class VFSNodeToNodeTypeImpl implements VFSNodeToNodeType{
    
    private VFSNodeToNodeTypeManager manager;
    
    public VFSNodeToNodeTypeImpl(Connection conn){
        manager = new VFSNodeToNodeTypeManagerImpl(conn);
    }
    
    @Override
    public Iterator<VFSNode> getNodes(VFSNodeType nodeType, VFSFilter filter){
        return manager.getNodes(nodeType, filter);
    }
    
    @Override
    public VFSNodeType getNodeType(VFSNode node){
        return manager.getNodeType(node);
    }
    
    @Override
    public void setNodeType(VFSNode node, VFSNodeType nodeType){
        manager.setNodeType(node, nodeType);
    }
    
}
